﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Solution.Entity.Entitys;

namespace Solution.EntityFrameworkCore.EntityConfigMap
{
    public class SysUserMap : IEntityTypeConfiguration<SysUser>

    {
        public void Configure(EntityTypeBuilder<SysUser> builder)
        {
            builder.ToTable("Sys_User");
            builder.HasKey(t => t.Id);
            builder.HasIndex(t => t.Name);
        }
    }
}